#ifndef SPECIALSPROXYMODEL_H
#define SPECIALSPROXYMODEL_H


#include <characterclass.h>
#include <classlevel.h>


#include <QSortFilterProxyModel>
#include <QPointer>


class SpecialsProxyModel : public QSortFilterProxyModel
{
    Q_OBJECT

public:

    explicit SpecialsProxyModel(QObject *parent = 0);
    
    virtual QVariant data(const QModelIndex &index, int role) const;
    virtual bool setData(const QModelIndex &index, const QVariant &value, int role);

    virtual Qt::ItemFlags flags(const QModelIndex &index) const;


public slots:

    void setClassLevels(const QModelIndex& sourceIndex);
    void setClassLevel(int level);


protected:

    QPointer<ClassLevels> m_classLevels;
    int m_level;

};

#endif // SPECIALSPROXYMODEL_H
